package com.wjs.blog.controller;

import com.wjs.blog.service.LoginService;
import com.wjs.blog.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logout")
public class LoginOutConrtol {
    @Autowired
    LoginService loginService;
    @GetMapping
    public Result loginout(@RequestHeader("Authorization") String token){

        return loginService.loginout(token);
    }
}
